#include <string.h>
#include <sys/param.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_log.h"
#include "nvs_flash.h"

#include "key.h"
#include "wifi.h"
#include "oled.h"
#include "ui.h"
#include "event.h"
#include "uart.h"
#include "tea5767.h"

void app_main(void)
{
    ESP_ERROR_CHECK(nvs_flash_init());
    ESP_ERROR_CHECK(esp_event_loop_create_default());

	event_init();
	oled_init();
	key_init();
	wifi_init();
	ui_init();
	uart_init();
	tea5767_init();
}
